import api, fn from vim

buf_map_func = (mode, lhs, name) ->
  api.nvim_buf_set_keymap(fn.bufnr!, mode, lhs, "<cmd>lua require'jelly/maps'.#{name}()<cr>", {noremap: true})

create_default_maps = ->
  buf_map_func 'n', 'K', 'help'

create_default_maps!
